package com.jy.admin.db.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.jy.admin.db.dao.UserDao;
import com.jy.admin.db.entity.UserEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
* User: anonymous
* Date: 2021-10-18
* Time: 15:47:51.722
*/

@Repository
public class UserDaoImpl extends AbstractBaseMapper<UserEntity> implements UserDao {

    @Override
    public UserEntity selectOneByAccount(String account, String password) {
        Map<String,String> params = new HashMap<>();
        params.put("account",account);
        params.put("password",password);
        return getSqlSession().selectOne(this.getStatement("selectOneByAccount"), params);
    }
}